package generator.service;

import com.atkt.ktkt.model.vod.Course;
import com.atkt.ktkt.vo.vod.CourseFormVo;
import com.atkt.ktkt.vo.vod.CoursePublishVo;
import com.atkt.ktkt.vo.vod.CourseQueryVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * @author 罗雅文
 * @description 针对表【course(课程)】的数据库操作Service
 * @createDate 2022-09-18 17:24:11
 */
public interface CourseService extends IService<Course> {

    Map<String, Object> findPageCourse(Page<Course> coursePage, CourseQueryVo courseQueryVo);

    //添加课程基本信息
    Long saveCourseInfo(CourseFormVo courseFormVo);

    //根据Id 获取课程信息
    CourseFormVo getCourseFormVoById(Long id);

    //修改课程信息
    void updateCourseId(CourseFormVo courseFormVo);

    CoursePublishVo getCoursePublishVo(Long id);

    void getPublishCourse(Long id);

    void removeCourseId(Long id);

    //课程列表
    Map<String, Object> findPage(Page<Course> pageParam, CourseQueryVo courseQueryVo);

    //根据id查询课程
    Map<String, Object> getInfoById(Long courseId);
}
